import java.util.Scanner;

class Animal{
    static {
        System.out.println("Animal::static");
    }
    public Animal() {
        System.out.println("Animal::构造");
    }

    {
        System.out.println("Animal::实例");
    }
}

class Dog extends Animal{
    static {
        System.out.println("Dog::static");
    }
    {
        System.out.println("Dog::实例");
    }

    public Dog() {
        super();
        System.out.println("Dog::构造");
    }
}

public class New {

    public static void main(String[] args) {
        System.out.println(4);
        Scanner scanner = new Scanner(System.in);
    }
    public static void main2(String[] args) {
        System.out.println(5);
    }
    public static void main1(String[] args) {
        Dog d = new Dog();
        char a = 0;

    }
}
